﻿@model App.Web.ViewModels.UtilityModels.ListConfig
@using App.Web.ViewModels.UtilityModels          
@using App.Web.Utility
@{
    String pageTitle = "My Favourite Products";

    ViewBag.Title = Html.GetPageTitle(pageTitle);
    PagerConfig _PagerConfig = Model.Pager;
    ViewBag.DataSource = Model.DataSource;
    _PagerConfig.UrlFormat = "/private/favorites?id={0}";
}

<div class="page-heading">
    <h1>@pageTitle</h1>
    <div>
        Manage your own favorite list. You can add or remove any product from your favorite list.
    </div>
</div>
<div class="GroupBox">
    
    @Html.Partial("_ProductList")
    @if (_PagerConfig != null)
    {    
        @Html.Partial("_Pager", _PagerConfig)
    }
</div>